package com.fis.hlo.pm.client;

import java.net.URL;

import javax.xml.namespace.QName;

import com.fis.hlo.pm.object.PMObjectsTransferer;
import com.fis.hlo.pm.object.PMObjectsTransfererService;
import com.fis.mca.config.Config;
import com.fis.mca.config.ConfigConstant;

public class ObjectsTransfererClient {
	private static final QName SERVICE_NAME =new QName("http://object.pm.hlo.fis.com/", "PMObjectsTransfererService");
	private static final String WSDL_URL = Config
			.getURL(ConfigConstant.PM_OBJECT_PORT_KEY);

	public static PMObjectsTransferer getService() throws Exception{
		URL url = new URL(WSDL_URL);
		PMObjectsTransfererService ss = new PMObjectsTransfererService(url, SERVICE_NAME);
		PMObjectsTransferer port = ss.getPMObjectsTransfererPort();
		return port;
	}
}
